<template>
    <div class="formLibrary">
        <el-input
            v-model="text"
            controls-position="right"
            @input="handelInput"
            type ="text"
            placeholder="请输入"
        ></el-input>
    </div>
</template>

<script>
export default {
    props: {
        iptAttritube: {
            type: Object,
            default: () => {}
        },
    },
    data() {
        return {
            text: ''
        }
    },
    mounted() {
        
    },
    methods: {
        handelInput() {
            let value = {
                value: this.text
            }
            this.$emit('handleChange', value, '0')
        },
        defaultData(d) {
            d.map(item => {
                if(item.customFieldId == this.iptAttritube.cusField) {
                    this.text = item.value
                }
            })
        },
        removeSure() {
            
        }
    }
}
</script>